package com.wang.entity;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Teacher {
    private int uid;
    private String tname;
    private String tsex;
    private String ideard;
    private String university;
    private String major;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date birthday;
    private String information;
    private String prize;
    private String ttel;
    private int tid;

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    public String getTname() {
        return tname;
    }

    public void setTname(String tname) {
        this.tname = tname;
    }

    public String getTsex() {
        return tsex;
    }

    public void setTsex(String tsex) {
        this.tsex = tsex;
    }

    public String getIdeard() {
        return ideard;
    }

    public void setIdeard(String ideard) {
        this.ideard = ideard;
    }

    public String getUniversity() {
        return university;
    }

    public void setUniversity(String university) {
        this.university = university;
    }

    public String getMajor() {
        return major;
    }

    public void setMajor(String major) {
        this.major = major;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getInformation() {
        return information;
    }

    public void setInformation(String information) {
        this.information = information;
    }

    public String getPrize() {
        return prize;
    }

    public void setPrize(String prize) {
        this.prize = prize;
    }

    public String getTtel() {
        return ttel;
    }

    public void setTtel(String ttel) {
        this.ttel = ttel;
    }

    public int getTid() {
        return tid;
    }

    public void setTid(int tid) {
        this.tid = tid;
    }

    @Override
    public String toString() {
        return "Teacher{" +
                "uid=" + uid +
                ", tname='" + tname + '\'' +
                ", tsex='" + tsex + '\'' +
                ", ideard='" + ideard + '\'' +
                ", university='" + university + '\'' +
                ", major='" + major + '\'' +
                ", birthday=" + birthday +
                ", information='" + information + '\'' +
                ", prize='" + prize + '\'' +
                ", ttel='" + ttel + '\'' +
                ", tid=" + tid +
                '}';
    }
}
